import request from '@/utils/request'

// 查询工作报告列表
export function listWorkReport (query) {
  return request({
    url: '/daily/workReport/list',
    method: 'get',
    params: query
  })
}

// 查询工作报告详细
export function getWorkReport (id) {
  return request({
    url: '/daily/workReport/' + id,
    method: 'get'
  })
}

// 新增工作报告
export function addWorkReport (data) {
  return request({
    url: '/daily/workReport',
    method: 'post',
    data: data
  })
}

// 修改工作报告
export function updateWorkReport (data) {
  return request({
    url: '/daily/workReport',
    method: 'put',
    data: data
  })
}

// 删除工作报告
export function delWorkReport (id) {
  return request({
    url: '/daily/workReport/' + id,
    method: 'delete'
  })
}

export function examine(data) {
    return request({
        url: '/daily/workReport/examine',
        method: 'post',
        data: data
    })
}

export function syncData(data) {
  return request({
    url: '/daily/workReport/syncData',
    method: 'post',
    data: data
  })
}